import { defineStore } from 'pinia'
const useUserTokenStore = defineStore("Token", {
    state: () =>{
        return {
            token:null
        }
    },
    actions: {
        setToken(text){
            this.token = text
        }
    },
    persist: {
        enabled: true,
        storage: sessionStorage,
    }
})

export default useUserTokenStore